#include <iostream>
#include <string.h>
using namespace std;


int  max_same_char(const char* s)
{
    int ascill[256] = {0};
    int length = strlen(s);
    int max = 0;
    for (int i = 0; i < length; i++)
    {
        ascill[s[i]]++;
    }
    for (int i = 0; i < 256; i++)
    {
        if (max < ascill[i])
        {
            max = ascill[i];
        }
    }
    return max;
}
int main()
{
    int x = 0;
    while (!(x % 2 == 1 && x % 3 == 2 && x % 5 == 4 && x % 6 == 5 && x % 7 == 0))
    {
        x++;
    }
    cout << x << endl;
    const char *s = "aaabbbb";
    int max = max_same_char(s);
    cout << max;
    return 0;
}